Optimal. Leaf size=53 \[ -\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{a^2}+\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2-\frac {\log (x)}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6420, 5526,
4269, 3556} \begin {gather*} -\frac {\log (x)}{a^2}-\frac {\sqrt {\frac {1-a x}{a x+1}} (a x+1) \text {sech}^{-1}(a x)}{a^2}+\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 4269
Rule 5526
Rule 6420
Rubi steps
\begin {align*} \int x \text {sech}^{-1}(a x)^2 \, dx &=-\frac {\text {Subst}\left (\int x^2 \text {sech}^2(x) \tanh (x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^2}\\ &=\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2-\frac {\text {Subst}\left (\int x \text {sech}^2(x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^2}\\ &=-\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{a^2}+\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2+\frac {\text {Subst}\left (\int \tanh (x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a^2}\\ &=-\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{a^2}+\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2-\frac {\log (x)}{a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 53, normalized size = 1.00 \begin {gather*} -\frac {\sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{a^2}+\frac {1}{2} x^2 \text {sech}^{-1}(a x)^2-\frac {\log (x)}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(99\) vs.
\(2(49)=98\).
time = 0.32, size = 100, normalized size = 1.89
method | result | size |
derivativedivides | \(\frac {-2 \,\mathrm {arcsech}\left (a x \right )+\frac {\mathrm {arcsech}\left (a x \right ) \left (\mathrm {arcsech}\left (a x \right ) a^{2} x^{2}-2 \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}\, a x +2\right )}{2}+\ln \left (1+\left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )^{2}\right )}{a^{2}}\) | \(100\) |
default | \(\frac {-2 \,\mathrm {arcsech}\left (a x \right )+\frac {\mathrm {arcsech}\left (a x \right ) \left (\mathrm {arcsech}\left (a x \right ) a^{2} x^{2}-2 \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}\, a x +2\right )}{2}+\ln \left (1+\left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )^{2}\right )}{a^{2}}\) | \(100\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 40, normalized size = 0.75 \begin {gather*} \frac {1}{2} \, x^{2} \operatorname {arsech}\left (a x\right )^{2} - \frac {x \sqrt {\frac {1}{a^{2} x^{2}} - 1} \operatorname {arsech}\left (a x\right )}{a} - \frac {\log \left (x\right )}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 106 vs.
\(2 (49) = 98\).
time = 0.34, size = 106, normalized size = 2.00 \begin {gather*} \frac {a^{2} x^{2} \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right )^{2} - 2 \, a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right ) - 2 \, \log \left (x\right )}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.26, size = 42, normalized size = 0.79 \begin {gather*} \begin {cases} \frac {x^{2} \operatorname {asech}^{2}{\left (a x \right )}}{2} - \frac {\sqrt {- a^{2} x^{2} + 1} \operatorname {asech}{\left (a x \right )}}{a^{2}} - \frac {\log {\left (x \right )}}{a^{2}} & \text {for}\: a \neq 0 \\\infty x^{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x\,{\mathrm {acosh}\left (\frac {1}{a\,x}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________